home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / OOFILE / Buildable, limited OOFILE / OOFILE headers / oofview.inl < prev   
Encoding:
Text File  |  1995-06-04  |  1.0 KB  |  69 lines  |  [TEXT/CWIE]

  1. // COPYRIGHT 1994 A.D. Software, All rights reserved
  2.  
  3. // public layer of OOFILE database - views
  4.  
  5. // inline definitions
  6.  
  7.  
  8. // -------------------------------------------------------
  9. //                   d b V i e w
  10. // -------------------------------------------------------
  11.  
  12.  
  13. inline dbView& dbView::append(dbField& rhs)
  14. {
  15.     OOF_Dictionary::append(&rhs);
  16.     return *this;
  17. }
  18.  
  19.  
  20. inline dbView& dbView::append(dbField* rhs)
  21. {
  22.     OOF_Dictionary::append(rhs);
  23.     return *this;
  24. }
  25.  
  26.  
  27. inline dbSource* dbView::source() const
  28. {
  29.     return mSource;
  30. }
  31.  
  32.  
  33. inline dbView& dbView::operator<<(dbField& rhs)
  34. {
  35.     append(rhs);
  36.     return *this;
  37. }
  38.  
  39.  
  40. inline dbView& dbView::operator<<(dbField* rhs)
  41. {
  42.     append(rhs);
  43.     return *this;
  44. }
  45.  
  46.  
  47.  
  48. // -------------------------------------------------------
  49. //               d b S o u r c e 
  50. // -------------------------------------------------------
  51. inline bool dbSource::empty()
  52. {
  53.     return count()==0;
  54. }
  55.  
  56.  
  57. inline bool dbSourceTable::more()
  58. {
  59.     return mTable->more();
  60. }
  61.  
  62.  
  63. inline void dbSourceTable::start()
  64. {
  65.     mTable->start();
  66. }
  67.  
  68.  
  69.